package com.Dao;

import com.POJO.OrderEngineer;
import com.POJO.OrderEngineerInformation;
import com.POJO.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface OrdersDao extends BaseMapper<Orders> {

    int insertOrdersWithEngineerDistance(@Param("orderUuid") String orderUuid,
                                                         @Param("longitude") BigDecimal longitude,
                                                         @Param("latitude") BigDecimal latitude);

    List<Orders> findEngineerOrders0(String engineerTel);

    List<Orders> findEngineerOrders1(String engineerTel);
//    List<Orders> findEngineerOrders2(String engineerTel);

    List<OrderEngineerInformation> selectEngineersByOrderUuidAndState(@Param("orderUuid") String orderUuid);
    OrderEngineerInformation selectOrderEngineer(@Param("orderUuid") String orderUuid);

}
